import java.util.Scanner;

public class test11 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 首先空格后的首字母,以及转换为大写
        String str = in.nextLine();//输入
        char[] ch = str.toCharArray();
        StringBuffer sb = new StringBuffer();
        for(int i=0;i<ch.length;i++){
            if(i == 0)
                sb.append(Character.toUpperCase(ch[i]));
            if(String.valueOf(ch[i]).equals(" ")){
                sb.append(Character.toUpperCase(ch[i+1]));
                i++;
            }
        }
        System.out.println(sb);
    }
}
